import request from '@/utils/request'

// 查询AI生成记录列表
export function listAiLog(query) {
  return request({
    url: '/md/aiLog/list',
    method: 'get',
    params: query
  })
}

// 查询AI生成记录详细
export function getAiLog(aiLogId) {
  return request({
    url: '/md/aiLog/' + aiLogId,
    method: 'get'
  })
}

// 新增AI生成记录
export function addAiLog(data) {
  return request({
    url: '/md/aiLog',
    method: 'post',
    data: data
  })
}

// 修改AI生成记录
export function updateAiLog(data) {
  return request({
    url: '/md/aiLog',
    method: 'put',
    data: data
  })
}

// 删除AI生成记录
export function delAiLog(aiLogId) {
  return request({
    url: '/md/aiLog/' + aiLogId,
    method: 'delete'
  })
}
